<template>
  <div class="loading" v-show="mainStore.isLoading">
    <img src="@/assets/img/global/loading.svg" alt="">
  </div>
</template>

<script setup>
import {  } from 'vue'
import useMainStore from '@/store/modules/main'

const mainStore = useMainStore()
</script>

<style lang='less' scoped>
.loading{
  position: fixed;
  z-index: 999;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0 ,0 ,0 ,.2);
  display: flex;
  justify-content: center;
  align-items: center;
  img{
    width: 30px;
  }
}
</style>